﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
	<%: Html.Partial("Sidebar") %>
	<div id="main">
		<div class="main-block">
			<h2 class="title">
                <%:"Account login".Localize() %></h2>
			<div class="main-block-content clearfix">
				<div class="two-column left">
					<strong>
                        <%:"I am a new customer.".Localize() %></strong>
					<div class="account-panel clearfix">
						<p>
                            <%:"By creating an account you will be able to shop faster, be up to date on an order's status and keep track of the orders you have previously made.".Localize() %></p>
						<a class="button right" href="/Register"><span>
                            <%:"Register".Localize() %></span></a>
					</div>
				</div>
				<div class="two-column right">
					<strong>
                        <%:"Returning Customer".Localize() %></strong>
					<div class="account-panel login-form clearfix">
						<p>
                            <%:"I am a returning customer.".Localize() %></p>
						<%using (Html.BeginForm())
		{ %>
						<%: Html.LabelFor(i=>i.UserName) %>
						<%: Html.TextBoxFor(i=>i.UserName) %>
						<%: Html.LabelFor(i=>i.Password) %>
						<%: Html.PasswordFor(i=>i.Password) %>
						<br />
						<button class="button right" type="submit">
							<em><span>
                                <%:"Login".Localize() %></span></em></button>
						<%} %>
					</div>
				</div>
			</div>
		</div>
	</div>

    <%
        var message = ViewData["Message"];
        if (message != null)
        {
            %>
            <script type="text/javascript">
                alert('<%= message %>');
            </script>
            <%
        }
        
         %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="JSContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Breadcrumb" runat="server">
	<ul class="breadcrumb">
		<li><a href="/">
            <%:"Home".Localize() %></a>&gt;</li>
		<li>
            <%:"Login".Localize() %></li>
	</ul>
</asp:Content>
